package com.itheima.sh.b;

public class StringHandlerDemo {
    public static void main(String[] args) {
        /*useStringHandler(new StringHandler() {
            @Override
            public void printMessage(int a) {
                System.out.println("666");
            }
        });*/

        //简化
        useStringHandler( a -> System.out.println("666"));

    }
    public static void useStringHandler(StringHandler sh){
        sh.printMessage(5);
    }
}
